﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Content.Web.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="LinksDataSource">
            <ItemTemplate>
                <asp:HyperLink ID="lnkMenuItem" runat="server" Text='<%# Eval("UnitText") %>' NavigateUrl='<%# "Default.aspx?UnitID=" + Eval("UnitID") %>'></asp:HyperLink>
            </ItemTemplate>
        </asp:Repeater>
        <asp:EntityDataSource ID="LinksDataSource" runat="server" 
            ConnectionString="name=eLearningEntities" 
            DefaultContainerName="eLearningEntities" EnableFlattening="False" 
            EntitySetName="Units" Select="it.UnitID, it.UnitText">
        </asp:EntityDataSource>
    
    </div>
    </form>
</body>
</html>
